﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Management.Core.News
{
    public class News
    {
        [Key]
        public int NewsID { get; set; }

        [Display(Name = "作者")]
        public string Author { get; set; }

        [Display(Name = "标题")]
        public string Title { get; set; }

        [Display(Name = "内容")]
        public string Content { get; set; }

        /// <summary>
        /// 信息类型【1】-行业新闻，【2】-行业动态
        /// </summary>
        [Display(Name = "类型")]
        public int ContentType { get; set; }
        public DateTime Created_at { get; set; }
        public DateTime Updated_at { get; set; }
    }
}
